package com.sdk.paas;


import com.sdk.paas.conts.PaasConts;

/**
 * @author limaosheng
 * @create 14:15 2022/1/18
 */
public class PaasResultUtil {
    /**
     * 请求成功
     *
     * @param result
     * @return
     */
    public static boolean isSuccess(PaasResult result) {
        return result != null && PaasConts.SUCCESS_CODE.equals(result.getCode());
    }

    /**
     * 请求失败
     *
     * @param result
     * @return
     */
    public static boolean isFail(PaasResult result) {
        return !isSuccess(result);
    }

}
